.class public Lcom/glympse/android/glympse/ViewHistory$TicketCell$OnClickListenerAdd15Minutes;
.super Ljava/lang/Object;
.source "ViewHistory.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/glympse/android/glympse/ViewHistory$TicketCell;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x1
    name = "OnClickListenerAdd15Minutes"
.end annotation


# instance fields
.field final synthetic this$1:Lcom/glympse/android/glympse/ViewHistory$TicketCell;


# direct methods
.method public constructor <init>(Lcom/glympse/android/glympse/ViewHistory$TicketCell;)V
    .locals 0
    .parameter

    .prologue
    .line 521
    iput-object p1, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell$OnClickListenerAdd15Minutes;->this$1:Lcom/glympse/android/glympse/ViewHistory$TicketCell;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 9
    .parameter "v"

    .prologue
    const-wide/32 v7, 0xdbba00

    .line 527
    invoke-static {}, Lcom/glympse/platform/common/CorrectedTime;->GetTime()J

    move-result-wide v0

    .line 530
    .local v0, lCurrent:J
    const-wide/16 v2, 0x0

    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell$OnClickListenerAdd15Minutes;->this$1:Lcom/glympse/android/glympse/ViewHistory$TicketCell;

    iget-wide v4, v4, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_lNewExpireTime:J

    cmp-long v2, v2, v4

    if-nez v2, :cond_0

    .line 532
    iget-object v2, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell$OnClickListenerAdd15Minutes;->this$1:Lcom/glympse/android/glympse/ViewHistory$TicketCell;

    iget-object v3, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell$OnClickListenerAdd15Minutes;->this$1:Lcom/glympse/android/glympse/ViewHistory$TicketCell;

    iget-object v3, v3, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_oTicket:Lcom/glympse/platform/common/Ticket;

    iget-wide v3, v3, Lcom/glympse/platform/common/Ticket;->m_lExpireTime:J

    invoke-static {v0, v1, v3, v4}, Ljava/lang/Math;->max(JJ)J

    move-result-wide v3

    iput-wide v3, v2, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_lNewExpireTime:J

    .line 536
    :cond_0
    iget-object v2, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell$OnClickListenerAdd15Minutes;->this$1:Lcom/glympse/android/glympse/ViewHistory$TicketCell;

    iget-wide v3, v2, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_lNewExpireTime:J

    const-wide/32 v5, 0xdbba0

    add-long/2addr v3, v5

    iput-wide v3, v2, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_lNewExpireTime:J

    .line 539
    iget-object v2, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell$OnClickListenerAdd15Minutes;->this$1:Lcom/glympse/android/glympse/ViewHistory$TicketCell;

    iget-wide v2, v2, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_lNewExpireTime:J

    add-long v4, v0, v7

    cmp-long v2, v2, v4

    if-lez v2, :cond_1

    .line 541
    iget-object v2, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell$OnClickListenerAdd15Minutes;->this$1:Lcom/glympse/android/glympse/ViewHistory$TicketCell;

    add-long v3, v0, v7

    iput-wide v3, v2, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->m_lNewExpireTime:J

    .line 545
    :cond_1
    iget-object v2, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell$OnClickListenerAdd15Minutes;->this$1:Lcom/glympse/android/glympse/ViewHistory$TicketCell;

    invoke-static {v2}, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->access$4(Lcom/glympse/android/glympse/ViewHistory$TicketCell;)Lcom/glympse/android/glympse/ViewHistory;

    move-result-object v2

    invoke-static {v2}, Lcom/glympse/android/glympse/ViewHistory;->access$5(Lcom/glympse/android/glympse/ViewHistory;)Lcom/glympse/android/glympse/ViewHistory$Add15Timer;

    move-result-object v2

    if-nez v2, :cond_2

    .line 547
    iget-object v2, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell$OnClickListenerAdd15Minutes;->this$1:Lcom/glympse/android/glympse/ViewHistory$TicketCell;

    invoke-static {v2}, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->access$4(Lcom/glympse/android/glympse/ViewHistory$TicketCell;)Lcom/glympse/android/glympse/ViewHistory;

    move-result-object v2

    new-instance v3, Lcom/glympse/android/glympse/ViewHistory$Add15Timer;

    iget-object v4, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell$OnClickListenerAdd15Minutes;->this$1:Lcom/glympse/android/glympse/ViewHistory$TicketCell;

    invoke-static {v4}, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->access$4(Lcom/glympse/android/glympse/ViewHistory$TicketCell;)Lcom/glympse/android/glympse/ViewHistory;

    move-result-object v4

    invoke-direct {v3, v4}, Lcom/glympse/android/glympse/ViewHistory$Add15Timer;-><init>(Lcom/glympse/android/glympse/ViewHistory;)V

    invoke-static {v2, v3}, Lcom/glympse/android/glympse/ViewHistory;->access$6(Lcom/glympse/android/glympse/ViewHistory;Lcom/glympse/android/glympse/ViewHistory$Add15Timer;)V

    .line 557
    :goto_0
    iget-object v2, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell$OnClickListenerAdd15Minutes;->this$1:Lcom/glympse/android/glympse/ViewHistory$TicketCell;

    invoke-static {v2}, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->access$4(Lcom/glympse/android/glympse/ViewHistory$TicketCell;)Lcom/glympse/android/glympse/ViewHistory;

    move-result-object v2

    invoke-static {v2}, Lcom/glympse/android/glympse/ViewHistory;->access$5(Lcom/glympse/android/glympse/ViewHistory;)Lcom/glympse/android/glympse/ViewHistory$Add15Timer;

    move-result-object v2

    invoke-virtual {v2}, Lcom/glympse/android/glympse/ViewHistory$Add15Timer;->Start()V

    .line 560
    iget-object v2, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell$OnClickListenerAdd15Minutes;->this$1:Lcom/glympse/android/glympse/ViewHistory$TicketCell;

    invoke-static {}, Lcom/glympse/platform/common/CorrectedTime;->GetTime()J

    move-result-wide v3

    invoke-static {v2, v3, v4}, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->access$0(Lcom/glympse/android/glympse/ViewHistory$TicketCell;J)V

    .line 561
    return-void

    .line 553
    :cond_2
    iget-object v2, p0, Lcom/glympse/android/glympse/ViewHistory$TicketCell$OnClickListenerAdd15Minutes;->this$1:Lcom/glympse/android/glympse/ViewHistory$TicketCell;

    invoke-static {v2}, Lcom/glympse/android/glympse/ViewHistory$TicketCell;->access$4(Lcom/glympse/android/glympse/ViewHistory$TicketCell;)Lcom/glympse/android/glympse/ViewHistory;

    move-result-object v2

    invoke-static {v2}, Lcom/glympse/android/glympse/ViewHistory;->access$5(Lcom/glympse/android/glympse/ViewHistory;)Lcom/glympse/android/glympse/ViewHistory$Add15Timer;

    move-result-object v2

    invoke-virtual {v2}, Lcom/glympse/android/glympse/ViewHistory$Add15Timer;->Stop()V

    goto :goto_0
.end method
